package com.zhj.threadpoolboot.service;

import cn.hutool.core.lang.Console;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;
import com.zhj.threadpoolboot.controller.TestController;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    private static Logger log = LoggerFactory.getLogger(TestController.class);


    public String doRequest(String url){
        String result = HttpUtil.get(url);

        return result;

    }

}
